import { agent } from "../enums";

// 最简代码，也就是这些字段必须有
export default {
  path: "/agent",
  meta: {
    icon: "ri:anticlockwise-fill",
    title: "代理管理",
    rank: agent,
    showLink: true,
    roles: ["admin"]
  },
  children: [
    {
      path: "/agent/settingsDic",
      name: "agentSettingsDic",
      component: () => import("@/views/agent/options/index.vue"),
      meta: {
        title: "配置项管理",
        roles: ["admin"]
      }
    },
    {
      path: "/agent/globalSetting",
      name: "globalSetting",
      component: () => import("@/views/agent/globalSetting/index.vue"),
      meta: {
        title: "全局配置",
        roles: ["admin"]
      }
    },
    {
      path: "/agent/serverSetting",
      name: "serverSetting",
      component: () => import("@/views/agent/serverSetting/index.vue"),
      meta: {
        title: "服务配置"
      }
    },
    {
      path: "/agent/publishConf",
      name: "publishConf",
      component: () => import("@/views/agent/publishConf/index.vue"),
      meta: {
        title: "配置发布"
      }
    },
    {
      path: "/agent/agentServer",
      name: "agentServer",
      component: () => import("@/views/agent/agentServer/index.vue"),
      meta: {
        title: "代理服务"
      }
    }
  ]
};
